/*
 * @Author: Baishui
 * @Date: 2021-09-14 09:25:10
 * @LastEditors: Baishui
 * @LastEditTime: 2021-10-08 15:32:39
 * @Description: file content
 */

import { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
    },
  },
  {
    path: '/:path(.*)*',
    redirect: '/404',
    component: Layout,
    children: [
      {
        path: '/:path(.*)*',
        name: 'NotFound',
        component: () => import('@/views/notFound/index.vue'),
      },
    ],
  },
]

export default routes
